﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq.Mapping;

namespace PhotoGallery.Entities
{
    [Table]
    public class Image
    {

        [Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)]
        public int? PhotoId { get; set; }

        [Column]
        public byte[] SmallImage { get; set; }
        [Column]
        public byte[] FullImage { get; set; }
        [Column]
        public String ImageMimeType { get; set; }
        
    }
}